home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <!DOCTYPE xsl:stylesheet [
- <!ENTITY externalScript SYSTEM "../ScriptLib/common.xsl">
- ]>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- &externalScript;
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:apply-templates select="imageinfo"/>
- </xsl:template>
- <xsl:template match="imageinfo">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- </head>
- <BODY bgcolor="#ccccff" link="#000000" alink="#000000" vlink="#000000">
- <table border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff" align="center" width="10">
- <tr><!-- row 1 -->
- <td background=""><img name="tl" src="graphics/tl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/tc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="tr" src="graphics/tr.gif" width="7" height="7" border="0"/></td>
- </tr>
- <tr><!-- row 2 -->
- <td background="graphics/l.gif" width="7"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
- <td background=""><div align="center"><IMG border="1"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></div></td>
- <td width="7" background="graphics/r.gif"><img src="graphics/mdshim.gif" width="7" height="1"/></td>
- </tr>
- <tr><!-- row 3 -->
- <td background=""><img name="bl" src="graphics/bl.gif" width="7" height="7" border="0"/></td>
- <td height="7" background="graphics/bc.gif"><img src="graphics/mdshim.gif" width="1" height="7"/></td>
- <td background=""><img name="br" src="graphics/br.gif" width="7" height="7" border="0"/></td>
- </tr>
- <tr><td colspan="3" valign="top"><table align="center" bgcolor="ccccff" width="100%"><tr><td width="100" valign="top"><div align="center"><xsl:apply-templates select="previous"/></div></td><td><div align="center"><font face="Arial, Helvetica, sans-serif" size="2"><a href="index.htm">Thumbnails</a></font><br kludge=""/><font face="Arial, Helvetica, sans-serif" size="2"><br kludge=""/>
- <b><xsl:value-of select="title"/></b></font>
- <font face="Arial, Helvetica, sans-serif" size="2"> <xsl:apply-templates select="description">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates>
- </font></div><br kludge=""/><div align="center"><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="center">
- <xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <img border="0" src="graphics/mdshim.gif"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="center">
- <xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <img border="0" src="graphics/mdshim.gif"/>
- </xsl:otherwise>
- </xsl:choose></div></td><td width="100" valign="top"><div align="center"><xsl:apply-templates select="next"/></div></td></tr></table></td></tr></table>
-
- </BODY>
- </xsl:element>
- </xsl:template>
-
- <xsl:template match="previous">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><font face="Arial, Helvetica, sans-serif" size="2">Back</font></A></xsl:when><xsl:otherwise>Back</xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="next">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>Next</A></xsl:when><xsl:otherwise><font face="Arial, Helvetica, sans-serif" size="2">Next</font></xsl:otherwise></xsl:choose></xsl:template>
-
- <xsl:template match="audio_info"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img border="0" src="graphics/sound.gif" width="24" height="28"/></A></xsl:template>
- <xsl:template match="movie_info"><A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute><img border="0" src="graphics/movie.gif" width="25" height="28"/></A></xsl:template>
-
- </xsl:stylesheet>
-